/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout";

const bidRouter = [
  {
    path: "/bidding",
    component: Layout,
    redirect: "/bidding/index",
    meta: { title: "招标管理", icon: "list" },
    alwaysShow: true,
    children: [
      {
        path: "index",
        component: () => import("@/views/bidding/index"),
        name: "BiddingIndex",
        meta: { title: "标的管理" }
      },
      {
        path: "create",
        component: () => import("@/views/bidding/create"),
        name: "BiddingCreate",
        meta: { title: "项目创建" },
        hidden: true
      },
      {
        path: "detail",
        component: () => import("@/views/bidding/detail"),
        name: "BiddingDetail",
        meta: { title: "招标详情" },
        hidden: true
      },
      {
        path: "select",
        component: () => import("@/views/bidding/pages/select"),
        name: "BiddingSelect",
        meta: { title: "选择入围" },
        hidden: true
      },
      {
        path: "open",
        component: () => import("@/views/bidding/pages/open"),
        name: "BiddingOpen",
        meta: { title: "开标" },
        hidden: true
      },
      {
        path: "evaluation",
        component: () => import("@/views/bidding/pages/evaluation"),
        name: "BiddingEvaluation",
        meta: { title: "评标" },
        hidden: true
      },
      {
        path: "evaluation_hall",
        component: () => import("@/views/bidding/pages/evaluation_hall"),
        name: "BiddingEvaluationHall",
        meta: { title: "评标大厅" },
        hidden: true
      },
      // 采购方进入评标大厅
      {
        path: "evaluation_hall_purchaser",
        component: () =>
          import("@/views/bidding/pages/evaluation_hall_purchaser"),
        name: "BiddingEvaluationHallPurchaser",
        meta: { title: "评标大厅" },
        hidden: true
      },
      {
        path: "evaluation_hall_multiple_purchaser_round",
        component: () =>
          import(
            "@/views/bidding/pages/evaluation_hall_purchaser_multiple_round"
          ),
        name: "BiddingEvaluationHallPurchaserMultipleRound",
        meta: { title: "评标大厅-多轮报价" },
        hidden: true
      },
      {
        path: "evaluation_result_purchaser",
        component: () =>
          import("@/views/bidding/pages/evaluation_result_purchaser"),
        name: "EvaluationResultPurchaser",
        meta: { title: "拟定结果" },
        hidden: true
      },
      {
        path: "evaluation_result_purchaser_agree",
        component: () =>
          import("@/views/bidding/pages/evaluation_result_purchaser_agree"),
        name: "EvaluationResultPurhcaserAgree",
        meta: { title: "拟定结果" },
        hidden: true
      },
      // 供应商进入评标大厅
      {
        path: "bid_supplier",
        component: () => import("@/views/bidding/pages/bid_supplier"),
        name: "BiddingBidSupplier",
        meta: { title: "投标" },
        hidden: true
      },
      {
        path: "evaluation_hall_supplier",
        component: () =>
          import("@/views/bidding/pages/evaluation_hall_supplier"),
        name: "BiddingEvaluationHallSupplier",
        meta: { title: "评标大厅" },
        hidden: true
      },
      {
        path: "evaluation_hall_supplier_enter",
        component: () =>
          import("@/views/bidding/pages/evaluation_hall_supplier_enter"),
        name: "BiddingEvaluationHallSupplierEnter",
        meta: { title: "报价" },
        hidden: true
      },
      {
        path: "evaluation_hall_supplier_follow",
        component: () =>
          import("@/views/bidding/pages/evaluation_hall_supplier_follow"),
        name: "BiddingEvaluationHallSupplierFollow",
        meta: { title: "跟价" },
        hidden: true
      },

      // 专家走入评标大厅
      {
        path: "evaluation_hall_expert",
        component: () => import("@/views/bidding/pages/evaluation_hall_expert"),
        name: "BiddingEvaluationHallExpert",
        meta: { title: "评标大厅" },
        hidden: true
      },
      {
        path: "evaluation_result_expert",
        component: () =>
          import("@/views/bidding/pages/evaluation_result_expert"),
        name: "EvaluationResultExpert",
        meta: { title: "拟定结果" },
        hidden: true
      },

      {
        path: "evaluation_result",
        component: () => import("@/views/bidding/pages/evaluation_result"),
        name: "EvaluationResult",
        meta: { title: "拟定结果" },
        hidden: true
      }
    ]
  }
  // {
  //   path: "/bond",
  //   component: Layout,
  //   redirect: "/bond/index",
  //   meta: { title: "保证金", icon: "money", role: ["supplier"] },
  //   children: [
  //     {
  //       path: "index",
  //       component: () => import("@/views/bond/index"),
  //       name: "BondIndex",
  //       meta: { title: "保证金管理" }
  //     }
  //   ]
  // }
];

export default bidRouter;
